Skip to content

[codex] fix: preserve remainder rows across worker batches#11

Closed
sergioballesteros-vd wants to merge 1 commit into
SantanderAI:mainfrom
sergioballesteros-vd:codex/preserve-remainder-rows
Closed

[codex] fix: preserve remainder rows across worker batches#11
sergioballesteros-vd wants to merge 1 commit into
SantanderAI:mainfrom
sergioballesteros-vd:codex/preserve-remainder-rows

Conversation

@sergioballesteros-vd

Copy link
Copy Markdown

Summary

This PR fixes row loss in account and transaction generation when the requested totals do not divide evenly across workers * batches_per_worker.

The generator now splits work with exact shard planning, so every requested row is produced and no remainder is dropped.

Type of change

  • fix — bug fix
  • test — adding or updating tests

Linked issues

  • N/A

Checklist

  • Commit messages follow Conventional Commits
  • Tests added or updated (pytest tests/ -v --cov=gen_fraud_graph)
  • Coverage stays at or above 80%
  • Lint/format/type pass locally (ruff check . && black --check . && mypy src/)
  • Documentation updated (README, CHANGELOG, docstrings) if behaviour changed
  • I have signed the CLA (the bot will prompt me if not)
  • I agree to follow the project's Code of Conduct

Notes for reviewers

The change is intentionally small and localized:

  • workload splitting was moved to an exact divmod-based helper
  • the public CLI/API contract remains unchanged
  • tests cover both remainder and exact-division cases

@github-actions

Copy link
Copy Markdown


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@sergioballesteros-vd

Copy link
Copy Markdown
Author

Superseded by PR #12 with a cleaner branch/title.

@github-actions github-actions Bot locked and limited conversation to collaborators Jun 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant